package com.wzw.springboot.principle.use.security.repository;

import com.wzw.springboot.principle.use.security.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Wangzhiwen
 */
@Repository("securityUserRepository")
public interface UserRepository extends JpaRepository<UserEntity, Long> {

    UserEntity findByAccount(String account);

    UserEntity findByMobile(String mobile);
}
